package net.kengo.volleyball.scheduler.data;

import java.io.*;
import java.util.*;

public class Match
{
   private int    courtNum = 0;
   private String opponent = new String();

   public Match( String opponent )
   {
      this.opponent = opponent;
   }


   public Match( String opponent, int courtNum )
   {
      this.opponent = opponent;
      this.courtNum = courtNum;
   }


   public int getCourtNum()
   {
      return this.courtNum;
   }


   public String getOpponent()
   {
      return this.opponent;
   }


   public void setCourtNum( int courtNum )
   {
      this.courtNum = courtNum;
   }


   public void setOpponent( String opponent )
   {
      this.opponent = opponent;
   }

   
   public String toString()
   {
      String html = new String();

      html += "          <TD>\n";
      html += "            <center>" + courtNum + "</center>\n";
      html += "          </TD>\n";

      html += "          <TD>\n";
      html += "            <center>" + opponent + "</center>\n";
      html += "          </TD>\n";

      return html;
   }

}
